package com.wnnight.wys.mapper.repairs;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wnnight.wys.entity.repairs.RepairsRecord;
import com.wnnight.wys.vo.RepairsGroupVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author rzh6230
 * @datetime 2022/8/28 7:10
 */
public interface RepairsRecordMapper extends BaseMapper<RepairsRecord> {
    @Select("select rep_status repStatus,count(*) count from ${prefix}repairs_record group by rep_status")
    List<RepairsGroupVo> getRepairInfo();
}
